package cn.kogee.feignclient;

import cn.kogee.domian.Store;
import cn.kogee.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("store-server")
public interface ProductFeign {
    @PutMapping
    AjaxResult addOrUpdate(@RequestBody Store Store);
    @GetMapping("/{id}")
    Store loadById(@PathVariable("id") Long id);
    @GetMapping("/pro/{id}")
    Store loadByProId(@PathVariable("id") Long id);
}
